package com.xialinrui.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.xialinrui.entity.InstantRecord;
import com.xialinrui.mapper.InstantRecordMapper;
import com.xialinrui.service.InstantRecordService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author xialinrui
 */
@Service
public class InstantRecordServiceImpl extends ServiceImpl<InstantRecordMapper, InstantRecord> implements InstantRecordService {
    @Resource
    private InstantRecordMapper instantRecordMapper;

    @Override
    public void addOneInstant(InstantRecord instantRecord) {
        instantRecordMapper.insert(instantRecord);
    }

    @Override
    public void delete(List<Long> ids) {
        instantRecordMapper.deleteBatchIds(ids);
    }
}
